package com.woniu.market_stall.mapper;

import com.woniu.market_stall.entity.StallAuction;
import com.woniu.market_stall.vo.StallAuctionDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StallAuctionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StallAuction record);

    StallAuction selectByPrimaryKey(Integer id);

    List<StallAuction> selectAll();

    int updateByPrimaryKey(StallAuction record);

    List<StallAuctionDetailVo> selectAuctionDetailByUsername(@Param("username") String username , @Param("stallId") int stallId);
}